Skip to content

Disable sketch folder deletion #943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 5, 2025

Conversation

Stefterv
Copy link
Collaborator

@Stefterv Stefterv commented Feb 5, 2025

Solves #794

When you delete the last tab in a sketch, Processing treats the entire folder containing the .pde file as the sketch folder. This means that if the .pde file is stored at the root of an important folder (like your Downloads or Desktop folder), deleting it via Processing and confirming the prompt will delete everything in that folder.

This causes confusion and has resulted in loss of data for some users. Show a warning message instead.

warning message that deleting the sketch folder is not supported

This feature was too sketchy for most users, we don't need it
@Stefterv Stefterv requested a review from SableRaf February 5, 2025 12:41
Copy link
Collaborator

@SableRaf SableRaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Note: I added auto-generated translations but we could only really verify the French, Italian, and Dutch languages. Others were checked for obvious mistakes, but more detailed proof-reading will be necessary. That said, I think this is good for merging.

@Stefterv Stefterv merged commit 0ef8a91 into processing:main Feb 5, 2025
6 checks passed
@Stefterv Stefterv deleted the disable-folder-delete branch February 5, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants